package spm.entities;

/**
 * This is a persistent class used by Hibernate. The class represents a possible
 * permission used in the ACL.
 * 
 * @author Evgeny Ryzhkov
 * 
 * $Id: Permission.java 11 2006-12-04 15:04:58Z evgeny.ryzhkov $
 */
public class Permission {

	/**
	 * The unique ID of the permission.
	 */
	private Long id;

	/**
	 * The key in the resource file for the permission name.
	 */
	private String permissionNameKey;

	/**
	 * Constructor without parameters. It is required by Hibernate.
	 */
	public Permission() {
	}

	/**
	 * @return Returns the id.
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id
	 *            The id to set.
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return Returns the permissionName.
	 */
	public String getPermissionNameKey() {
		return permissionNameKey;
	}

	/**
	 * @param permissionName
	 *            The permissionName to set.
	 */
	public void setPermissionName(String permissionNameKey) {
		this.permissionNameKey = permissionNameKey;
	}

}
